翻訳と辞書
Words near each other
・ Callender Peak
・ Callender's Cableworks Band
・ Callender, California
・ Callender, Iowa
・ Callender-Hamilton bridge
・ Callengeville
・ Callenish Circle
・ Callens
・ Callensburg, Pennsylvania
・ Callenya
・ Callenya lenya
・ Calleonasus
・ Caller
・ Caller (dancing)
・ Callback (comedy)
Callback (computer programming)
・ Callback (telecommunications)
・ Callback verification
・ Callboard Network
・ Callbook
・ Callbox
・ Callcott Reilly
・ Callcredit
・ Calldetenes
・ Calle
・ Calle 100 (TransMilenio)
・ Calle 106 (TransMilenio)
・ Calle 127 (TransMilenio)
・ Calle 13
・ Calle 13 (album)


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Callback (computer programming) : ウィキペディア英語版
Callback (computer programming)

In computer programming, a callback is a piece of executable code that is passed as an argument to other code, which is expected to ''call back'' (execute) the argument at some convenient time. The invocation may be immediate as in a synchronous callback, or it might happen at later time as in an asynchronous callback. In all cases, the intention is to specify a function or subroutine as an entity that is, depending on the language, more or less similar to a variable.
Programming languages support callbacks in different ways, often implementing them with subroutines, lambda expressions, blocks, or function pointers.
== Design ==
There are two types of callbacks, differing in how they control data flow at runtime: ''blocking callbacks'' (also known as ''synchronous callbacks'' or just ''callbacks'') and ''deferred callbacks'' (also known as ''asynchronous callbacks''). While blocking callbacks are invoked before a function returns (in the C example below, which illustrates a blocking callback, it is function main), deferred callbacks may be invoked after a function returns. Deferred callbacks are often used in the context of I/O operations or event handling, and are called by interrupts or by a different thread in case of multiple threads. Due to their nature, blocking callbacks can work without interrupts or multiple threads, meaning that blocking callbacks are not commonly used for synchronization or delegating work to another thread.
Callbacks are used to program applications in windowing systems. In this case, the application supplies (a reference to) a specific custom callback function for the operating system to call, which then calls this application-specific function in response to events like mouse clicks or key presses. A major concern here is the management of privilege and security: whilst the function is called from the operating system, it should not run with the same privilege as the system. A solution to this problem is using rings of protection.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Callback (computer programming)」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.